package Tools;

public class BotTopDistance implements DistanceFun{
	public double calculate(double[][] a, double[][] b) {
		double sum=0;
		for(int i=0;i<a.length;i++){
			sum+=(Math.abs(a[i][0]-b[i][0])+Math.abs(a[i][1]-b[i][1]))*(Math.abs(a[i][0]-b[i][0])+Math.abs(a[i][1]-b[i][1]));
		}
		return Math.sqrt(sum);
	}
}
